/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.Date;

/**
 *
 * @author shofyan
 */

import java.io.Serializable; 
import javax.persistence.Column; 
import javax.persistence.Entity; 
import javax.persistence.GeneratedValue; 
import javax.persistence.Id; 
import javax.persistence.Table; 
import javax.persistence.Temporal;

@Entity 
@Table(name = "mahasiswa")
public class Mahasiswa{
    
    @Id
    @Column(name="nim", nullable=false,length=20)
    private String NIM;
    
    @Column(name="nama", nullable=false,length=20)
    private String Name;
    
    @Column(name="tgl_lahir", nullable=false, length=50)
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date TanggalLahir;
   
    @Column(name="jurusan", nullable=false, length=50)
    private String Jurusan;
     
    @Column(name="alamat", nullable=false, length=50)
    private String Alamat;

    public String getNIM() {
        return NIM;
    }

    public void setNIM(String NIM) {
        this.NIM = NIM;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public Date getTanggalLahir() {
        return TanggalLahir;
    }

    public void setTanggalLahir(Date TanggalLahir) {
        this.TanggalLahir = TanggalLahir;
    }

    public String getJurusan() {
        return Jurusan;
    }

    public void setJurusan(String Jurusan) {
        this.Jurusan = Jurusan;
    }

    public String getAlamat() {
        return Alamat;
    }

    public void setAlamat(String Alamat) {
        this.Alamat = Alamat;
    }
    
            
    
            
    
}
